<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class About extends CI_Controller {
    public function __construct()
    {
        parent::__construct();
        $this->load->model('ad');       
    }
    
    // index function
    public function index(){
        $clicksor_ad = $this->ad->getAdByName('clicksor');
        $bet365_ad = $this->ad->getAdByName('bet365_1');
        $data['ads'] = array('clicksor' => $clicksor_ad, 'bet365_1' => $bet365_ad);
        $this->load->helper('url');
        $this->load->view('about', $data);
    }
}